const {
    Sequelize,
    DataTypes
} = require('sequelize');
const sequelize = require('../../util/mysql')

const User = sequelize.define('users', {
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true
    },
    username: {
        type: Sequelize.STRING,

    },
    password: {
        type: Sequelize.STRING,

    },
    role: {
        type: Sequelize.STRING,

    },
}, {
    tableName: 'account',
    timestamps: false,
});
// `sequelize.define` 会返回模型
module.exports = User